<?php



require_once('MySQLdatabase.php');

class member extends MySQLdatabase{
public function getAdmin($username,$password){
        $this->connectDatabase();
        $sQuery = "SELECT * FROM member WHERE username='$username' and password='$password' ";
        $result = mysql_query($sQuery);
        $row = mysql_fetch_row($result);
        if(!isset($row)){
            $row = null;
        }       
        return $row;
}
}
?>